/*
 * @Author: Simon 1958058172@qq.com
 * @Date: 2025-08-05 17:16:24
 * @LastEditors: Simon 1958058172@qq.com
 * @LastEditTime: 2025-08-05 17:21:54
 * @FilePath: \java.1212\day04\work01\Test.java
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
package day04.work01;

public class Test {
     public static void main(String[] args) {
        Shape rectangle = new Rectangle("Red", 2.0, 3.0);
        Shape circle = new Circle("Blue", 5);
        System.out.println(rectangle.getColor());
        System.out.println("Area: " + rectangle.area());
        System.out.println();
        System.out.println(circle.getColor());
        System.out.println("Area: " + circle.area());
        
    }
}
